package com.lyf.job.task;

import com.lyf.common.core.constant.SecurityConstants;
import com.lyf.common.core.utils.StringUtils;
import com.lyf.system.api.RemoteSupermarketService;
import com.lyf.system.api.RemoteUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 * 
 * @author lyf
 */
@Component("operTask")
public class OperTask
{

    @Autowired
    RemoteUserService remoteUserService;

    @Autowired
    RemoteSupermarketService  remoteSupermarketService;

    public void operClear()
    {
        System.out.println("执行清除操作日志方法");
        remoteUserService.cleanOperByMonth(SecurityConstants.INNER);
    }

    public void updateByDay(){

        remoteSupermarketService.updateByDay(SecurityConstants.INNER);
    }
}
